package cam.School.DataAccessObject;

import java.util.Date;
import java.util.List;

import cam.School.DAOException.DAOException;
import cam.School.DataTransfertObject.CallResult;
import cam.School.DataTransfertObject.UserRequestDTO;


public interface UserRequestDAO {
	
	public UserRequestDTO getById(Long id) throws DAOException;

	public List<UserRequestDTO> getAll() throws DAOException;

	public CallResult create(UserRequestDTO request);

	public boolean update(UserRequestDTO request);

	public boolean delete(int requestId);

	
	public UserRequestDTO getByDescription(String description);

	public List<UserRequestDTO> getByDate(Date date);

	public List<UserRequestDTO> getByOrigin(long id);

	public UserRequestDTO getByDestination(long id);



}
